package MsgPackage;

/**
 * @author Omri Barda		039725890 
 * @author Amit Joseph		034608547
 * @author Gilad Shpigel  	300162393
 * @author Elad Elbaz		040539959
 * @version June 2012
 */

import entities.*;

public class AddComputerizedExamPack extends MessagePack {
	/**
	 * 
	 */
	private static final long serialVersionUID = 1L;
	private ComputerizedExam cptExm;
	private Student stdnt;


	/**
	 * constructor
	 * 
	 * @param computerizedExm
	 * @param student_id
	 * @param exmCod
	 */
	public AddComputerizedExamPack(ComputerizedExam computerizedExm,
			int student_id, String exmCod) {
		cptExm = computerizedExm;
		stdnt = new Student();
		this.op = OpType.AddComputerzdExam;
	}
	
	/**
	 * Empty constructor
	 * 
	 */
	public AddComputerizedExamPack(){
		stdnt = new Student();
		this.op = OpType.AddComputerzdExam;
	}
	
	/**
	 * 
	 * @param cmptrExm
	 *            the computerized exam
	 */
	public void SetComputerizedExam(ComputerizedExam cmptrExm) {
		cptExm = cmptrExm;
	}

	/**
	 * 
	 * @return the computerized exam
	 */
	public ComputerizedExam getComputerizedExam() {
		return cptExm;
	}

	/**
	 * @return the stdnt
	 */
	public Student getStdnt() {
		return stdnt;
	}

	/**
	 * @param stdnt the stdnt to set
	 */
	public void setStdnt(Student stdnt) {
		this.stdnt = stdnt;
	}
}
